package com.zdy.im.user.vo.request;

import com.sixeco.framework.common.api.ApiDesc;
import com.sixeco.framework.http.data.vo.RequestParserVo;

public class RoomUserNameRequestVo extends RequestParserVo {

    /** userId 用户id  */
    @ApiDesc(value = "用户id", required = 1)
    private long userId;
    /** roomId 群id  */
    @ApiDesc(value = "群id", required = 1)
    private long roomId;
    @ApiDesc(value = "用户群昵称/备注昵称", required = 0)
    private String nickName;
    @ApiDesc(value = "群设置 -1:不接受消息, 1:接收消息", required = 0)
    private int roomSet;
    @ApiDesc(value = "类型 -1:用户，1:管理员", required = 0)
    private int userRole;
    @ApiDesc(value = "群员禁言(1：已禁言,-1：未禁言)", required = 0)
    private int forbidSpeech;

    public static RoomUserNameRequestVo build(){
        return new RoomUserNameRequestVo();
    }

    public RoomUserNameRequestVo toUserId(long userId) {
        this.userId = userId;
        return this;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public RoomUserNameRequestVo toRoomId(long roomId) {
        this.roomId = roomId;
        return this;
    }

    public long getRoomId() {
        return roomId;
    }

    public void setRoomId(long roomId) {
        this.roomId = roomId;
    }

    public RoomUserNameRequestVo toNickName(String nickName) {
        this.nickName = nickName;
        return this;
    }

    public RoomUserNameRequestVo toRoomSet(int roomSet) {
        this.roomSet = roomSet;
        return this;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public int getRoomSet() {
        return roomSet;
    }

    public void setRoomSet(int roomSet) {
        this.roomSet = roomSet;
    }

    public RoomUserNameRequestVo toUserRole(int userRole) {
        this.userRole = userRole;
        return this;
    }

    public int getUserRole() {
        return userRole;
    }

    public void setUserRole(int userRole) {
        this.userRole = userRole;
    }

    public RoomUserNameRequestVo toForbidSpeech(int forbidSpeech) {
        this.forbidSpeech = forbidSpeech;
        return this;
    }

    public int getForbidSpeech() {
        return forbidSpeech;
    }

    public void setForbidSpeech(int forbidSpeech) {
        this.forbidSpeech = forbidSpeech;
    }
}
